const modalPlugin = requirePlugin('couponPlugin');
Component({

  data: {
   params: [
   	  	  {
   	  	   activityId: '2024032100826004152127847986',
   	  	   
   	  	   outBizNo:9,
   	  	   
   	  	   voucherCode:9,//非导码模式商家券
   	  	  }
   	  	],
    senderMerchantId: '2088741155421152',
    dialogBtnType: 1,
    dialogBtnStyle: {
      color: '#000',
      borderColor: 'yellowgreen',
      backgroundColor: 'yellowgreen',
    },
  },
 

  onGetCouponSuccess(resultList) {

    console.log('触发了 onGetCouponSuccess 事件')
    console.log('成功返回结果: ', resultList)
  },
  onGetCouponFail(result) {
    console.log('触发了 onGetCouponFail 事件')
    console.log('失败返回结果: ', result)
  },
  onUseImmediately(event) {
    console.log('触发了 onUseImmediately 事件')

    // 可以跳转到自定义的页面
   
  },
  onClose(event) {
    console.log('触发了 onClose 事件')
  },
  onInit(){
	
  },
	methods: {
		// ys(){
		// 	  console.log(777,my.getStorageSync({
		// 	  					key: 'nid'
		// 	  				}).data)
		// 	  this.setData({
		// 	  	params: [
		// 	  	  {
		// 	  	   activityId: '2024032100826004152127847986',
			  	   
		// 	  	   outBizNo: my.getStorageSync({
		// 	  					key: 'nid'
		// 	  				}).data,
			  	   
		// 	  	   voucherCode: my.getStorageSync({
		// 	  					key: 'nid'
		// 	  				}).data,//非导码模式商家券
		// 	  	  }
		// 	  	],
		// 	  })  
			  
		
		// }
	},

});